package com.gang.easyexcel_demo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 注意：必须要有无参的构造器
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {

    @ExcelProperty("编号")
    private Integer id;

    @ExcelProperty("姓名")
    private String name;

    @ExcelIgnore
    private String phone;

}
